setBackInvokedCallbackEnabled
Sets whether the toolbar will attempt to register its own OnBackInvokedCallback in supported configurations to handle collapsing expanded action items when a back invocation occurs.
This feature is only supported on SDK 33 and above for applications that have enabled back invocation callback handling.
Parameters
enabled
true
to attempt to register a back invocation callback in supported configurations or false
to not automatically handle back invocations